package com.itheima.Demo6;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Properties;

public class Demo {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("day0731\\msg.txt"));
        LinkedHashMap<String,String> map = new LinkedHashMap<>();

        String s;
        while((s = br.readLine()) != null){
            String[] split = s.split("=");
            map.put(split[0],split[1]);
        }

        br.close();

        map.forEach((k,v)-> System.out.println(k+"="+v));
    }
}
